package com.qmx.qmxapp.bean;

import java.io.Serializable;
import java.util.List;

/**
 * @author chengxiangtong
 * @date 2018/11/6
 * version : 1.0
 * class describe：*
 */
public class LoginModel implements Serializable {


    /**
     * id : 10001
     * identifier : 13575790001
     * name : 郑超
     * email : superz@qq.com
     * mobile : 13575790001
     * avatar : /assets/img/avatar.png
     * enterprise : ["21000002","21000001"]
     * verification : {"email":0,"mobile":1,"bind":1,"room":1}
     * room : {"id":900000001,"uid":10001,"eid":21000001,"name":"郑超的云会议室","room_password":"","root_password":"698271","auto_mute":"0","auto_call":"0","auto_video":"0","session":[{"id":21000001,"name":"浙江星聚合智能科技有限公司","session":0},{"id":21000002,"name":"杭州星聚合智能科技有限公司","session":0}],"type":"0","configs":{"join_pwd":0,"say_pwd":1}}
     * user_token : {"token":"544b247f-ce32-4ba7-a9f6-97262ea5d5db","user_id":"10001","expiretime":1545293109,"expired_in":2592000}
     * user_sig : {"usersig":"eJxNjV1PwjAARf-LXjWma9c5THjgYwSCDRAKmL00s*1oNXSl1DFj-O-WOaOv95x770dEH7d3Jef1m-HMv1sZPUQguu1iLaTxutLShTAGAMQ9KK3VgpWeISf**Rfxyjr0rSdBxxlCaQ9la7WTrKz8zxzGGIbJnjbSXXRtAoChFkMEwB-0*iS7SgJTGAN0--unjyEm*WaymC2p4ma1SsQhmdWNv1m3z2qwm2eSj4uXc64wP8bbYvBks5EeE6oEJ-OF2bs0o8Rdl5iSSaM2lZnm0-3p0BZuxHfrs7kOh9HnFwZFVyI_","createtime":1542621037,"expiretime":1558173036,"expires_in":15551999}
     */

    private int id;
    private String identifier;
    private String name;
    private String email;
    private String mobile;
    private String avatar;
    private Verification verification;
    private Room room;
    private UserToken user_token;
    private UserSig user_sig;
    private List<String> enterprise;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getIdentifier() {
        return identifier;
    }

    public void setIdentifier(String identifier) {
        this.identifier = identifier;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Verification getVerification() {
        return verification;
    }

    public void setVerification(Verification verification) {
        this.verification = verification;
    }

    public Room getRoom() {
        return room;
    }

    public void setRoom(Room room) {
        this.room = room;
    }

    public UserToken getUser_token() {
        return user_token;
    }

    public void setUser_token(UserToken user_token) {
        this.user_token = user_token;
    }

    public UserSig getUser_sig() {
        return user_sig;
    }

    public void setUser_sig(UserSig user_sig) {
        this.user_sig = user_sig;
    }

    public List<String> getEnterprise() {
        return enterprise;
    }

    public void setEnterprise(List<String> enterprise) {
        this.enterprise = enterprise;
    }

    public static class Verification {
        /**
         * email : 0
         * mobile : 1
         * bind : 1
         * room : 1
         */

        private int email;
        private int mobile;
        private int bind;
        private int room;

        public int getEmail() {
            return email;
        }

        public void setEmail(int email) {
            this.email = email;
        }

        public int getMobile() {
            return mobile;
        }

        public void setMobile(int mobile) {
            this.mobile = mobile;
        }

        public int getBind() {
            return bind;
        }

        public void setBind(int bind) {
            this.bind = bind;
        }

        public int getRoom() {
            return room;
        }

        public void setRoom(int room) {
            this.room = room;
        }
    }

    public static class Room {
        /**
         * id : 900000001
         * uid : 10001
         * eid : 21000001
         * name : 郑超的云会议室
         * room_password :
         * root_password : 698271
         * auto_mute : 0
         * auto_call : 0
         * auto_video : 0
         * session : [{"id":21000001,"name":"浙江星聚合智能科技有限公司","session":0},{"id":21000002,"name":"杭州星聚合智能科技有限公司","session":0}]
         * type : 0
         * configs : {"join_pwd":0,"say_pwd":1}
         */

        private int id;
        private int uid;
        private int eid;
        private String name;
        private String room_password;
        private String root_password;
        private String auto_mute;
        private String auto_call;
        private String auto_video;
        private String type;
        private Configs configs;
        private List<Session> session;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getUid() {
            return uid;
        }

        public void setUid(int uid) {
            this.uid = uid;
        }

        public int getEid() {
            return eid;
        }

        public void setEid(int eid) {
            this.eid = eid;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getRoom_password() {
            return room_password;
        }

        public void setRoom_password(String room_password) {
            this.room_password = room_password;
        }

        public String getRoot_password() {
            return root_password;
        }

        public void setRoot_password(String root_password) {
            this.root_password = root_password;
        }

        public String getAuto_mute() {
            return auto_mute;
        }

        public void setAuto_mute(String auto_mute) {
            this.auto_mute = auto_mute;
        }

        public String getAuto_call() {
            return auto_call;
        }

        public void setAuto_call(String auto_call) {
            this.auto_call = auto_call;
        }

        public String getAuto_video() {
            return auto_video;
        }

        public void setAuto_video(String auto_video) {
            this.auto_video = auto_video;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public Configs getConfigs() {
            return configs;
        }

        public void setConfigs(Configs configs) {
            this.configs = configs;
        }

        public List<Session> getSession() {
            return session;
        }

        public void setSession(List<Session> session) {
            this.session = session;
        }

        public static class Configs {
            /**
             * join_pwd : 0
             * say_pwd : 1
             */

            private int join_pwd;
            private int say_pwd;

            public int getJoin_pwd() {
                return join_pwd;
            }

            public void setJoin_pwd(int join_pwd) {
                this.join_pwd = join_pwd;
            }

            public int getSay_pwd() {
                return say_pwd;
            }

            public void setSay_pwd(int say_pwd) {
                this.say_pwd = say_pwd;
            }
        }

        public static class Session {
            /**
             * id : 21000001
             * name : 浙江星聚合智能科技有限公司
             * session : 0
             */

            private int id;
            private String name;
            private int session;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getSession() {
                return session;
            }

            public void setSession(int session) {
                this.session = session;
            }
        }
    }

    public static class UserToken {
        /**
         * token : 544b247f-ce32-4ba7-a9f6-97262ea5d5db
         * user_id : 10001
         * expiretime : 1545293109
         * expired_in : 2592000
         */

        private String token;
        private String user_id;
        private int expiretime;
        private int expired_in;

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public int getExpiretime() {
            return expiretime;
        }

        public void setExpiretime(int expiretime) {
            this.expiretime = expiretime;
        }

        public int getExpired_in() {
            return expired_in;
        }

        public void setExpired_in(int expired_in) {
            this.expired_in = expired_in;
        }
    }

    public static class UserSig {
        /**
         * usersig : eJxNjV1PwjAARf-LXjWma9c5THjgYwSCDRAKmL00s*1oNXSl1DFj-O-WOaOv95x770dEH7d3Jef1m-HMv1sZPUQguu1iLaTxutLShTAGAMQ9KK3VgpWeISf**Rfxyjr0rSdBxxlCaQ9la7WTrKz8zxzGGIbJnjbSXXRtAoChFkMEwB-0*iS7SgJTGAN0--unjyEm*WaymC2p4ma1SsQhmdWNv1m3z2qwm2eSj4uXc64wP8bbYvBks5EeE6oEJ-OF2bs0o8Rdl5iSSaM2lZnm0-3p0BZuxHfrs7kOh9HnFwZFVyI_
         * createtime : 1542621037
         * expiretime : 1558173036
         * expires_in : 15551999
         */

        private String usersig;
        private int createtime;
        private int expiretime;
        private int expires_in;

        public String getUsersig() {
            return usersig;
        }

        public void setUsersig(String usersig) {
            this.usersig = usersig;
        }

        public int getCreatetime() {
            return createtime;
        }

        public void setCreatetime(int createtime) {
            this.createtime = createtime;
        }

        public int getExpiretime() {
            return expiretime;
        }

        public void setExpiretime(int expiretime) {
            this.expiretime = expiretime;
        }

        public int getExpires_in() {
            return expires_in;
        }

        public void setExpires_in(int expires_in) {
            this.expires_in = expires_in;
        }
    }
}
